package chapte04.de;

class Animal15{
    public void shout(){
        System.out.println("喵喵喵.....");
    }
}
class Dog1 extends Animal15{
    public void shout(){
        System.out.println("汪汪汪.......");
    }
    public void eat(){
        System.out.println("吃骨头......");
    }
}
public class Example15 {
    public static void main(String[] args) {
        Dog1 dog1 = new Dog1();
        Animal15 an = dog1;
        an.shout();
    }
}
